<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="../static/main/css/styles.css">
<link rel="stylesheet"
	href="../webjars/bootstrap/3.3.7-1/css/bootstrap.css">
<script type="text/javascript" src="../static/validate/js/jquery.js"></script>
<script type="text/javascript"
	src="../static/validate/js/jquery.validate.js"></script>
<script type="text/javascript"
	src="../static/validate/js/messages_zh.js"></script>
<script type="text/javascript"
	src="../webjars/bootstrap/3.3.7-1/js/bootstrap.js"></script>

<style type="text/css">
#wjmm {
	width: 300px;
	margin-top: 330px;
	margin-left: 400px;
	border: 1px solid black;
}

label {
	display: inline-block;
	width: 70px;
}
</style>

</head>
<body>
	<div class="caidan">
		<div class="htmleaf-container">
			<nav class="animenu">
				<ul class="animenu__nav"
					style="margin-left: 15%; margin-right: 15%;">
					<li style="font-size: 20px; font-weight: 1100;"><a id="fa">发票管理系统</a></li>
					<li><a href="../main"><span
							class="glyphicon glyphicon-home">首页</span></a></li>
					<li><a>欢迎您:<span sec:authorize="hasRole('ROLE_DBA')">开发者</span><span
							sec:authorize="!hasRole('ROLE_DBA')"
							sec:authentication="principal.name">张三</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserTenant/zuhugl"><span
							class="glyphicon glyphicon-pencil">租户编辑</span></a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../UserManager/xzgl"><span
							class="glyphicon glyphicon-pencil">用户编辑</span></a></li>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../User/xzgl"><span class="glyphicon glyphicon-pencil">用户管理</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/fpcx">电子发票查询</a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/sqxx">软件授权信息</a>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../Tenantxx/zxfp">新增电子发票信息</a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../SysUser/yhcz">用户操作日志</a></li>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../UserTenant/xgmm"><span
							class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/xgmm"><span
							class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../SysUser/xgmm"><span class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li style="float: right;"><a href="../logout"><span
							class="glyphicon glyphicon-off">注销</span></a></li>
				</ul>
			</nav>
		</div>
	</div>

	<div id="wjmm">
		<p>
			<label>电子邮箱:</label><input type="text" id="username"
				onchange="eee(thid.value)">
		</p>
		<p>
			<label id="parem" for="username"></label>
		</p>
		<p>
			<label>验证码:</label><input type="text" id="yzm"
				onchange="ddd(this.value)">
		</p>
		<p>
			<label id="parem1" for="yzm"></label>
		</p>
		<button style="margin-right: 30px; margin-left: 130px;" id="btn"
			type="button" onclick="tj()">提交</button>
		<button style="margin-right: 20px;" type="button"
			onclick="window.location.href='../UserTenant/xgmm'">返回</button>
	</div>

	<script type="text/javascript">
		function eee(str) {
			$.post('pdyx', {
				username : "str"
			}, function(date) {
				if (!date) {
					$('#parem').html("您输入的电子邮箱错误！");
				}
				$('#parem').html("");
			})

		}

		function ddd(strs) {
			$.post('pdyz', {
				yzm : "strs"
			}, function(date) {
				if (!date) {
					$('#parem1').html("验证码输入错误！");
				}
				$('#parem1').html("");
			})
		}

		/* function tj(){
			var d=1;
			$('#btn').load("tjxg",{tj:d});
		} */
	</script>
</body>
</html>